<template>
  <div>
    <van-nav-bar
      left-arrow
      :fixed="flag"
      @click-left="onClickLeft"
    >
      <template #title>
        <van-search  shape="round"
          @click="search"
          v-model="value"
          placeholder="请输入搜索关键词"
        />
      </template>
    </van-nav-bar>
  </div>
</template>

<script>
export default {
  data() {
    return {
      flag: true,
      value: '',
    };
  },
  methods: {
    //返回上个页面
    onClickLeft() {
      this.$router.back();
    },
    //跳入搜索界面
    search(){

    }
  },
};
</script>

<style lang="scss" scoped>

</style>